/**
 * Created with BlueStream
 * Date: 13. 6. 2
 * Time: 오전 12:19
 * Writer: 강석민
 */
window.onload = function(){
    panel = document.getElementById("panel");
    setInterval(addText,20);
}

var count = 1;
var panel;
function addText(){

    var fontSize = 10 + Math.random()*40;
    var fontColor = "#"+parseInt((Math.random()*0xffffff)).toString(16);

    var span = document.createElement("span");
    span.style.fontSize = fontSize+"px";
    span.style.color = fontColor;
    span.style.display = "inline-block";
    span.innerHTML = count;

    this.panel.appendChild(span);
    this.window.scrollTo(0,window.document.body.scrollHeight);

    count++;

}